package com.stj.entity;

import java.util.HashSet;
import java.util.Set;

public class blogType {
    private int id;
    private String typeName;
    private int orderNo;
    private int blogCount;

    public int getBlogCount() { return blogCount;}

    public void setBlogCount(int blogCount) {this.blogCount = blogCount; }

    /* 一对多 */
    private Set<Blog> blog = new HashSet<>();

    public Set<Blog> getBlog() {
        return blog;
    }

    public void setBlog(Set<Blog> blog) {
        this.blog = blog;
    }

    public blogType() {
    }

    public blogType(int id, String typeName, int orderNo) {
        this.id = id;
        this.typeName = typeName;
        this.orderNo = orderNo;
    }

    public int getId() {return id;}

    public void setId(int id) {this.id = id;}

    public String getTypeName() { return typeName;}

    public void setTypeName(String typeName) {this.typeName = typeName;}

    public int getOrderNo() { return orderNo;}

    public void setOrderNo(int orderNo) {this.orderNo = orderNo;}

    @Override
    public String toString() {
        return "blogType{" +
                "id=" + id +
                ", typeName='" + typeName + '\'' +
                ", orderNo=" + orderNo +
                '}';
    }
}
